#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Charles.chen
# createDate:2017/9/5
# Title:
# Tip:
from flask import render_template, redirect, request, url_for, flash, session
from . import sys, systemService
from app.toolkit import commonUtil
import json

@sys.route('/index', methods=['GET'])
def index():

    userConfig = systemService.getUserConfig()
    sysConfig = systemService.getAllSystemConfig()
    data = {
        "user": userConfig,
        "sys": sysConfig
    }
    return render_template('system/index.html', data=json.loads(json.dumps(data)))






if __name__ == '__main__':
    pass